<!DOCTYPE html>
<html>
<head>
<title>PVMG10固件信息表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("pvmgfirmware:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("pvmgfirmware:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("pvmgfirmware:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">固件类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.type" placeholder="固件类型"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">固件版本</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.version" placeholder="固件版本"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">下载地址</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.downloadPath" placeholder="下载地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">项目编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.projectCode" placeholder="项目编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">MD5值</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.mdKey" placeholder="MD5值"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">文件大小（单位：Bytes）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.fileSize" placeholder="文件大小（单位：Bytes）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">设备类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.deviceType" placeholder="设备类型"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.createTime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">默认0-不强制更新, 1为强制更新</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.mustUpdate" placeholder="默认0-不强制更新, 1为强制更新"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">更新默认时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.updateTime" placeholder="更新默认时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">0是最新，1是老版本</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.status" placeholder="0是最新，1是老版本"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">固件运行环境版本号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.bootloaderVersion" placeholder="固件运行环境版本号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">文件名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="pvMgFirmware.fileName" placeholder="文件名称"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/generator/pvmgfirmware.js?_${date.systemTime}"></script>
</body>
</html>